﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace TesteIATcc.FuncoesAjuda
{
    class StaticBezier
    {
        public static Vector2 Linear(Vector2 pos1, Vector2 pos2, float t)
        {
            return pos1 = pos1 + (pos2 - pos1) * t;
        }

        public static Vector2 Quad(Vector2 pos0, Vector2 pos1, Vector2 pos2, float t)
        {
            return (((1 - t) * (1 - t)) * pos0) + (2 * (1 - t) * t * pos1) + ((t * t) * pos2);
        }
    }
}
